package admin.server.dao;

import org.apache.ibatis.annotations.Select;
import admin.dao.model.UmsEmployee;

public interface UmsEmployeeDao {


    @Select("INSERT INTO ums_employee(user_id, employee_no,employee_type,en_name,name,status) " +
            "VALUES(#{userId}, #{employeeNo},#{employeeType},#{enName},#{name},#{status}) " +
            "ON DUPLICATE KEY UPDATE user_id =user_id")
    void insertOnDuplicate(UmsEmployee employee);


    @Select("truncate table ums_employee")
    void truncate();


}
